package com.smarttourism.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.smarttourism.domain.SHX.SHXRoom;
import com.smarttourism.domain.SHX.RoomOrderStatus;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 订单表
 * @TableName roomOrder
 */
@Data
public class Roomorder implements Serializable {
    /**
     * 订单id
     */
    private Integer id;

    /**
     * 预定人
     */
    private String pname;

    /**
     * 预定人手机号
     */
    private String phone;

    /**
     * 入住日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date intime;

    /**
     * 离开日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date outtime;

    /**
     * 房间名称
     */

    private String rname;

    /**
     * 房间号
     */
    private int rNum;

    /**
     * 订单状态
     */
    private Integer status;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date createtime;

    /**
     * 逻辑删除
     */
    private Integer del;

    private SHXRoom roomInfo;    private RoomOrderStatus roomOrderStatus;
    private Double money;

}